/**
 * 根据value反查key
 */
export function getKeyByValue(obj, value, unique = true){
    const allKeys = Object.keys(obj)
                          .filter(key => obj[key] === value)
    return unique ? allKeys[0] : allKeys
}
